function PartyMemMemmo()
DEFAULT_CHAT_FRAME:AddMessage("Partymember:", 1, 0.4, 1);

        if (UnitIsPlayer("player") == true) then ptmember0=UnitName("player");
                DEFAULT_CHAT_FRAME:AddMessage(ptmember0 .. " Saved!", 0.7, 0.8,0.4);
        end;

        if (UnitIsPlayer("party1") == true) then ptmember1=UnitName("party1");
                DEFAULT_CHAT_FRAME:AddMessage(ptmember1 .. " Saved!", 0.7, 0.8,0.4);
        end;

        if (UnitIsPlayer("party2") == true) then ptmember2=UnitName("party2");
                DEFAULT_CHAT_FRAME:AddMessage(ptmember2 .. " Saved!", 0.7, 0.8,0.4);
        end;

        if (UnitIsPlayer("party3") == true) then ptmember3=UnitName("party3");
                DEFAULT_CHAT_FRAME:AddMessage(ptmember3 .. " Saved!", 0.7, 0.8,0.4);
        end;

        if (UnitIsPlayer("party4") == true) then ptmember4=UnitName("party4");
                DEFAULT_CHAT_FRAME:AddMessage(ptmember4 .. " Saved!", 0.7, 0.8,0.4);
        end;

        if (UnitIsPlayer("party5") == true) then ptmember5=UnitName("party5");
                DEFAULT_CHAT_FRAME:AddMessage(ptmember5 .. " Saved!", 0.7, 0.8,0.4);
        end;

DEFAULT_CHAT_FRAME:AddMessage("Saving Complete", 1, 0.4, 1);
end;

function PartyReInvite()
        if(ptmember1 == nil)then DEFAULT_CHAT_FRAME:AddMessage("1. Partymember not saved?!", 0.8, 0.3, 0.2) else
                DEFAULT_CHAT_FRAME:AddMessage(ptmember1 .. " invited.", 0.2, 0.3 ,0.8);
                InviteByName(ptmember1);
        end;

        if(ptmember2 == nil)then DEFAULT_CHAT_FRAME:AddMessage("2. Partymember not saved?!", 0.8, 0.3, 0.2) else
                DEFAULT_CHAT_FRAME:AddMessage(ptmember2 .. " invited.", 0.2, 0.3 ,0.8);
                InviteByName(ptmember2);
        end;

        if(ptmember3 == nil)then DEFAULT_CHAT_FRAME:AddMessage("3. Partymember not saved?!", 0.8, 0.3, 0.2) else
                DEFAULT_CHAT_FRAME:AddMessage(ptmember3 .. " invited.", 0.2, 0.3 ,0.8);
                InviteByName(ptmember3);
        end;

        if(ptmember4 == nil)then DEFAULT_CHAT_FRAME:AddMessage("4. Partymember not saved?!", 0.8, 0.3, 0.2) else
                DEFAULT_CHAT_FRAME:AddMessage(ptmember4 .. " invited.", 0.2, 0.3 ,0.8);
                InviteByName(ptmember4);
        end;

        if(ptmember5 == nil)then DEFAULT_CHAT_FRAME:AddMessage("5. Partymember not saved?!", 0.8, 0.3, 0.2) else
                DEFAULT_CHAT_FRAME:AddMessage(ptmember5 .. " invited.", 0.2, 0.3 ,0.8);
                InviteByName(ptmember5);
        end;
end;

SLASH_PtSave1 = "/pts";
function SlashCmdList.PtSave()
PartyMemMemmo();
end
SLASH_PtInvite1 = "/pti";
function SlashCmdList.PtInvite()
PartyReInvite();
end